package com.xinqi.modules.discuss;

import com.xinqi.common.mybatis.annotation.JsonTypeScan;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author wenjie
 * @date 2023/10/21  23:08
 */

@Slf4j
@EnableDiscoveryClient
@SpringBootApplication
@EnableAsync
@EnableTransactionManagement
@EnableFeignClients(basePackages = {"com.xinqi.modules"})
@JsonTypeScan(basePackages = {"com.xinqi.modules.discuss.*.domain", "com.xinqi.modules.discuss.*.*.domain"})
@ComponentScan(basePackages = {"com.xinqi.common.rocketmq", "com.xinqi.common.third"})
public class DiscussApplication {
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(DiscussApplication.class);
        application.setApplicationStartup(new BufferingApplicationStartup(2048));
        application.run(args);
        log.info("==========>> 讨论公告模块启动成功 !!!");
    }

}
